﻿namespace SmartPeople.Framework.SecuritySpace
{
    public class SecurityPolicy
    {
        public SecurityPolicy()
        {
            numberoftries = 3;
            timeout = 1;
        }

        private int numberoftries;
        private static double timeout;


        //public double TimeOut
        //{
        //    get { return timeout; }
        //    set { timeout = value; }
        //}

        public int NumberofTries
        {
            get { return numberoftries; }
            set { numberoftries = value; }
        }


        public static double GetTimeOut()
        {
            return timeout;
        }

        public static string GeneratePassword()
        {
            PasswordGenerator pwdGen = new PasswordGenerator();
            pwdGen.Exclusions = "";
            pwdGen.Maximum = 10;
            pwdGen.ConsecutiveCharacters = true;
            pwdGen.ExcludeSymbols = true;
            string password = pwdGen.Generate();
            return password;
        }
    }
}